package homework5;


import homework5.Student;

import java.util.Objects;

public class Test {
    public static void main(String[] args) {
        Student stu1 = new Student("小明","男",18);
        Student stu2 = new Student("小红","女", 19);

        System.out.println("stu1 = " + stu1);
        System.out.println("stu2 = " + stu2);


        boolean flag = Objects.equals(stu1, stu2);
        System.out.println(flag);

    }
}
